<template>
		<view class="frieds" @tap="entry">
			<image :src="user.src" mode="scaleToFill"></image>
			<view style="display: flex;justify-content: space-between;width: 84%;">
				<text>
					<text class="users">{{user.name}}\n</text>
				</text>
			</view>
		</view>
</template>

<script>
	export default {
		props:{
			user:Object
		},
		data() {
			return {
				time:Number
			};
		},
		methods:
		{
			entry() {
				console.log(this.user.name,this.user.src)
				// 触发时间
				uni.navigateTo({
					url: "../../pageA/liaotiao/liaotiao?name=" + this.user.name + "&con=你好呀，该人员还没上线！" + "&pic=" + this.user.src,
				})
			},
		}
	}
</script>

<style lang="less" scoped>
	.frieds {
		width: 96%;
		// margin: 2%;
		margin: 0 auto;
		height: 100rpx;
		line-height: 150rpx;
		// background-color: red;
		border-bottom: 1px solid #D9D9D9;
		// padding-bottom: 8px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		image {
			width: 80rpx;
			height: 80rpx;
			border-radius: 20rpx;
		}
		view
		{
			.users{
				font-size: 34rpx;
				font-weight: bolder;
			}
			.time
			{
				font-size: 24rpx;
				color: #b0b0b0;
			}
			.crx
			{
				font-size: 25rpx;
				color: #b0b0b0;
			}
		}
		
	}
</style>
